using UnityEngine;
using System;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;

public class GameConf
{
    public static GameConf Instance { get { return SingletonProvider<GameConf>.Instance; } }

    private ConfigData configData;

    public GameConf()
    {
        configData = JsonEx.ReadJsonToObject<ConfigData>(Application.dataPath + "/Resources/game.conf.json");
    }

    public ConfigData data { get { return configData; } }
}

#pragma warning disable 0649
[Serializable]
public struct ConfigData
{
    public bool showFps;
    public bool showVersion;
}

#pragma warning restore 0649
